package org.x.casemodule.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import org.x.casemodule.enums.PermissionEnum;

import java.lang.Long;
import java.util.Date;
import java.lang.Object;
import java.lang.String;

/**
 * 日程共享表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "schedule_share",dataSource = "caseDS")
public class ScheduleShareEntity {

    /**
     * 共享ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联事件ID
     */
    @Column(value = "event_id")
    private Long eventId;

    /**
     * 共享者ID
     */
    @Column(value = "from_user_id")
    private Long fromUserId;

    /**
     * 被共享者ID
     */
    @Column(value = "to_user_id")
    private Long toUserId;

    /**
     * 权限级别
     */
    @Column(value = "permission")
    private PermissionEnum permission;

    /**
     * 共享令牌
     */
    @Column(value = "share_token")
    private String shareToken;

    /**
     * 过期时间
     */
    @Column(value = "expire_time")
    private Date expireTime;

    @Column(value = "create_time")
    private Date createTime;

}
